﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master"
    Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="title" runat="server">
    查看管理员
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%List<Ghy.Soft.Domain.Entities.Admin> admins = (List<Ghy.Soft.Domain.Entities.Admin>)ViewData["admins"]; %>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">
        </div>
        <table>
            <thead>
                <tr>
                    <th>
                        管理员ID
                    </th>
                    <th>
                        名称
                    </th>
                    <th>
                        用户权限
                    </th>
                    <th>
                        用户状态
                    </th>
                    <th>
                        最后登录
                    </th>
                    <th>
                        操作
                    </th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <td colspan="6">
                        <div class="bulk-actions align-left">
                            <%=Html.DropDownList("lists")%>
                            <a class="button" href="#">确认</a>
                        </div>
                        <div class="clear">
                        </div>
                    </td>
                </tr>
            </tfoot>
            <tbody>
                <% foreach (var item in admins)
                   { %>
                <tr>
                    <td>
                        <%=item.AdminId %>
                    </td>
                    <td>
                        <%=item.AdminName %>
                    </td>
                    <td>
                        <%=item.Permission %>
                    </td>
                    <td>
                        <%=item.State %>
                    </td>
                    <td>
                    <%=new DateTime() %>
                    </td>
                    <td>
                        <a href="#" title="Edit">
                            <img src="../../Content/Admin/images/icons/pencil.png" alt="Edit" /></a> <a href="#" title="Delete">
                                <img src="../../Content/Admin/images/icons/cross.png" alt="Delete" /></a> <a href="#" title="Edit Meta">
                                    <img src="../../Content/Admin/images/icons/hammer_screwdriver.png" alt="Edit Meta" /></a>
                    </td>
                </tr>
                <% } %>
            </tbody>
        </table>
    </div>
    </div>
</asp:Content>
